#include <stdio.h>

int main() 
{
    long double n, m, q;
    scanf("%Lf", &n);
    m = 0.0254 * n;
    q = n / 0.0254;
    printf("%.2Lf mill = %.2Lf mm, %.2Lf mm = %.2Lf mill", n, m, n, q);
    return 0;
}
